SKU: 73235222412

ELECFREAKS Octopus CO2 Gas Sensor (MG811)

Sale price$44.91 Regular price$49.90
Save 10%

Pay in installments of $12.47 with ShopPay, AfterPay and Klarna

Shipping Estimate
USA
  • USA
  • CAN

Ships within 48 hours · Estimated delivery Jul 20 - Jul 25

Promo Codes Available:

For Your Every Summer RSVP, with Code: SUMMER15

Description

ELECFREAKS Octopus CO2 Gas Sensor (MG811)Octopus MG811 CO2 Gas Sensor is a CO2 electronic brick in our OCTOPUS series, the basic design for the outlook, PCB fixing holes and connections are the same as theirs. The higher the CO2 concentration is, the lower the output voltage would be. The users can read the CO2 value easily after checking our brochures and coding samples. The CO2 probe is made with an industrial grade that is highly allergic to CO2 and anti interference to alcohol and CO. It

 

Octopus MG811 CO2 Gas Sensor is a CO2 electronic brick in our OCTOPUS series, the basic design for the outlook, PCB fixing holes and connections are the same as theirs.

The higher the CO2 concentration is, the lower the output voltage would be. The users can read the CO2 value easily after checking our brochures and coding samples.
The CO2 probe is made with an industrial grade that is highly allergic to CO2 and anti-interference to alcohol and CO. It is of high performance and quick response with a loaded signal amplification circuit even in different temperature and humidity environments. Besides, the heating circuit on-board helps to convert to stable 6V voltage from 5V directly improves the adaptability of the module.

Caution

The module belongs to electrochemistry CO2 and the probe heats itself when working, please do not touch in case getting hurt.
Please make seal preservation while the sensor is not in use in case the probe gets “poisoned” due to the long time exposure in the air or you have to heat it continuously for another 48 hours to activate it!
The MG-811 probe belongs to the category of electrochemistry sensor, please make a proving operation for it before using it to get an accurate value.

Characteristic

Working voltage of the probes: 6v
With the booster circuit inbuilt, it supports input DC 3.7~5V and the current over 500mA.
OCTOPUS electronic bricks.
Easy connection.

Specifications

Item Parameter
Name Octopus MG811 CO2 Gas Sensor
SKU EF04100
Working Voltage DC 3.7~5v
Connection Mode G-GND,V-VCC,S-pin signals
Size 31 x 48mm
Net Weight 9.6g

Outlook & Dimension

Hardware Connection

The module connects to the A0 of the Arduino UNO through a Dupont wire with the best fastener, the Arduino main board much be powered with an extra connection(7.5V-9V).

 

PROVING OPERATION

The MG-811 probe belongs to the category of electrochemistry sensor, please make a proving operation for it before using it to get an accurate value. The probes heat themselves after giving a stable power supply. Please put the module in a place in fresh air and heat for 48 hours continuously. Please measure the output voltage(unit: V) of the module and divides by 8.5, the final value should be filled into the macro definition of the code:

#define ZERO_POINT_VOLTAGE (Revise as: Voltage(V)/8.5)
For example: if the voltage tested by the multimeter is 2.4V, then we use 2.4/8.5=0.282, and we should revise them as below:

#define ZERO_POINT_VOLTAGE (0.282)
After revising, please upload it to Arduino main board and you can use it to test your own projects now.

 

Coding Samples

/*Demo for MG-811 Gas Sensor Module V1.1*
**/

/**Hardware Related Macros**/

#define MG_PIN (A0) //define which analog input channel you are going to use

#define DC_GAIN (8.5) //define the DC gain of amplifier

/*Software Related Macros**/

#define READ_SAMPLE_INTERVAL (50) //define how many samples you are going to take in normal operation

#define READ_SAMPLE_TIMES (5) //define the time interval(in milisecond) between each samples in
//normal operation

/**Application Related Macros**/
//These two values differ from sensor to sensor. user should derermine this value.

#define ZERO_POINT_VOLTAGE (0.220) //define the output of the sensor in volts when the concentration of CO2 is 400PPM

#define REACTION_VOLTGAE (0.030) //define the voltage drop of the sensor when move the sensor from air into 1000ppm CO2

/*Globals*/
float CO2Curve[3] = {2.602,ZERO_POINT_VOLTAGE,(REACTION_VOLTGAE/(2.602-3))};
//two points are taken from the curve.
//with these two points, a line is formed which is
//"approximately equivalent" to the original curve.
//data format:{ x, y, slope}; point1: (lg400, 0.324), point2: (lg4000, 0.280)
//slope = ( reaction voltage ) / (log400 –log1000)

void setup()
{
Serial.begin(9600); //UART setup, baudrate = 9600bps
Serial.print("MG-811 Demostration\n");
}

void loop()
{
int percentage;
float volts;

volts = MGRead(MG_PIN);
Serial.print( "SEN0159:" );
Serial.print(volts); 
Serial.print( "V           " );

percentage = MGGetPercentage(volts,CO2Curve);
Serial.print("CO2:");
if (percentage == -1) {
    Serial.print( "<400" );
} else {
    Serial.print(percentage);
}

Serial.print( "ppm" );  
Serial.print("\n");

delay(500);

}

/* MGRead *
Input: mg_pin - analog channel
Output: output of SEN-000007
Remarks: This function reads the output of SEN-000007
**/
float MGRead(int mg_pin)
{
int i;
float v=0;

for (i=0;i<READ_SAMPLE_TIMES;i++) {
    v += analogRead(mg_pin);
    delay(READ_SAMPLE_INTERVAL);
}
v = (v/READ_SAMPLE_TIMES) *5/1024 ;
return v;  

}

/* MQGetPercentage **
Input: volts - SEN-000007 output measured in volts
pcurve - pointer to the curve of the target gas
Output: ppm of the target gas
Remarks: By using the slope and a point of the line. The x(logarithmic value of ppm)
of the line could be derived if y(MG-811 output) is provided. As it is a
logarithmic coordinate, power of 10 is used to convert the result to non-logarithmic
value.
**/
int MGGetPercentage(float volts, float *pcurve)
{
if ((volts/DC_GAIN )>=ZERO_POINT_VOLTAGE) {
return -1;
} else {
return pow(10, ((volts/DC_GAIN)-pcurve[1])/pcurve[2]+pcurve[0]);
}
}

 

Result

Open the serial monitor and you will get the concentration of the CO2 around you after 5 minutes.

 

Packing List

Item Parameter
Octopus MG811 CO2 Gas Sensor 1

 

Learn

Octopus MG811 CO2 Gas Sensor

Shipping Notes
  • Free Standard Shipping on $100+ Orders to the USA.
  • Except Preorder products are shipped in 48 hours.
  • Delivery to the USA:
  1. Standard Shipping : 3-10 business days
  • If time is of the essence, please consider selecting expedited delivery for faster service.
Exchange/Return Notes
  • We offer a 30-day return/exchange service after receiving.
  • Final sale items are not eligible for returns or exchanges.
  • To process your return/exchange, please contact us at [email protected]
  • Please click here for more details>>> Return & Exchange Policy
SKU: 73235222412

Discover Niche Categories That Outsell

Top-Converting Item to Boost Your Average Order

4.5 ★★★★★
Based on 7 reviews
Sort
Highest Rating
Newest First
Oldest First
Product Reviews
L
Verified Purchase
LOUIE POOP
Belleville, US
★★★★★ 5
Better than expected
Style: dog ball launcher
Sick love it nice and longer than expected !!! Good quality durable material also .
WAS THIS REVIEW HELPFUL?YesReportShare
Reviewed in the United States on April 23, 2026
R
Verified Purchase
Ray Jorgenson
Boise, US
★★★★★ 1
Terrible product
Style: dog ball launcher
Terrible design. With most dog ball launchers, swinging your arm like you're throwing a baseball results in a long arching trajectory of the ball, just as expected. The same arm motion with this launcher results in the ball flying straight up. To get the ball to even move forward requires an un-natural forward snap of the wrist, and even then it doesn't travel far. Hasn't anyone tried this out before hitting the market?
WAS THIS REVIEW HELPFUL?YesReportShare
Reviewed in the United States on April 12, 2026
B
Verified Purchase
Bob Conner
Phoenix, US
★★★★★ 5
Great product
Style: dog ball launcher
Very easy to use, assemble and disassemble. Saves my arm a lot. Unfortunately once my dog runs to the ball she gets side tracked and I have to fetch it. 🫤 I highly recommend this product.
WAS THIS REVIEW HELPFUL?YesReportShare
Reviewed in the United States on April 3, 2026
A
Verified Purchase
Amazon Customer
Belleville, US
★★★★★ 4
Fun day in the park
Style: dog ball launcher
My puppy loves it
WAS THIS REVIEW HELPFUL?YesReportShare
Reviewed in the United States on April 29, 2026
D
Verified Purchase
donald m hebert sr.
Louisville, US
★★★★★ 5
My wife uses it more
Style: dog ball launcher
My dog loves it she can run father
WAS THIS REVIEW HELPFUL?YesReportShare
Reviewed in the United States on April 1, 2026

recommand products